package com.csii.adhoc.util.serializer;

import cn.hutool.core.util.HexUtil;
import com.csii.adhoc.util.encrypt.HexUtils;

import java.io.IOException;

/**
 * @description: pe参数序列化工具类
 * @author: panChuanJiang
 * @create: 2021-07-19 14:30
 */
public class PeSerializerUtils {

    /**
     * pe参数转化方法
     * @param obj 参数对象
     * @return 结果
     * @throws IOException 异常
     */
    public static String[] serialize(Object obj) throws IOException {
        String[] argValues = new String[1];
        argValues[0] = HexUtils.bytes2HexStr(JdkSerializerUtils.serialize(obj));
        return argValues;
    }
}
